#define _CRT_SECURE_NO_WARNINGS 1

#include"Stack.h"

void TestStack()
{
	ST s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPop(&s);
	StackPop(&s);
	StackDataType x = StackTop(&s);
	int size = StackSize(&s);
	printf("%d %d ", x,size);
	StackPop(&s);
	if (!StackEmpty(&s))
	{
		printf("NO!");
	}
	StackDestory(&s);
}

int main()
{
	TestStack();
	return 0;
}